package com.gmzg.gmzgnews.news.entries;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Jasen on 2016 2016/11/4.10:58
 * Email:1142803753@qq.com
 * weixin: aserbao
 */

public class AmuseTop {

    /**
     * status : true
     * total : 13824
     * tngou : []
     */

    private boolean status;
    private int total;
    private List<AmuseNews> tngou;

    public static List<AmuseTop> arrayAmuseTopFromData(String str) {

        Type listType = new TypeToken<ArrayList<AmuseTop>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<AmuseNews> getTngou() {
        return tngou;
    }

    public void setTngou(List<AmuseNews> tngou) {
        this.tngou = tngou;
    }
}
